package com.xx.service;


import com.github.pagehelper.PageInfo;
import com.xx.entity.Products;
import com.xx.entity.ProductsList;
import org.apache.ibatis.annotations.Param;

public interface ProductsService {
    //ID查询
    ProductsList queryById(Integer productId);

    //查询指定行数据
    PageInfo<ProductsList> queryAllByLimit(Products products, Integer pageNum);

    //新增数据
    int insert(Products products);

    //修改数据
    int update(Products products);

    //主键删除
    int deleteById(Integer productId);

    String selectImageUrl(@Param("productId") Integer productId);

    Object queryByPage(Products products, Integer pageNum);
}
